package com.hero.basicsystem.dao.ibatis;

import com.hero.basicsystem.dao.IEnterprisedominationtypeDAO;
import com.hero.basicsystem.entity.Enterprisedominationtype;
import com.hero.basicsystem.entity.EnterprisedominationtypeExample;
import com.hero.web.dao.IbatisBaseDao;
import java.util.List;

public class EnterprisedominationtypeDAOImpl extends IbatisBaseDao<Enterprisedominationtype, EnterprisedominationtypeExample> implements IEnterprisedominationtypeDAO {

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public EnterprisedominationtypeDAOImpl() {
        super();
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int countByExample(EnterprisedominationtypeExample example) {
        Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("enterprisedominationtype.ibatorgenerated_countByExample", example);
        return count;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int deleteByExample(EnterprisedominationtypeExample example) {
        int rows = getSqlMapClientTemplate().delete("enterprisedominationtype.ibatorgenerated_deleteByExample", example);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int deleteByPrimaryKey(Integer ID) {
        Enterprisedominationtype key = new Enterprisedominationtype();
        key.setID(ID);
        int rows = getSqlMapClientTemplate().delete("enterprisedominationtype.ibatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public void insert(Enterprisedominationtype record) {
        getSqlMapClientTemplate().insert("enterprisedominationtype.ibatorgenerated_insert", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public void insertSelective(Enterprisedominationtype record) {
        getSqlMapClientTemplate().insert("enterprisedominationtype.ibatorgenerated_insertSelective", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    @SuppressWarnings("unchecked")
    public List<Enterprisedominationtype> selectByExample(EnterprisedominationtypeExample example) {
        List<Enterprisedominationtype> list = getSqlMapClientTemplate().queryForList("enterprisedominationtype.ibatorgenerated_selectByExample", example);
        return list;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public Enterprisedominationtype selectByPrimaryKey(Integer ID) {
        Enterprisedominationtype key = new Enterprisedominationtype();
        key.setID(ID);
        Enterprisedominationtype record = (Enterprisedominationtype) getSqlMapClientTemplate().queryForObject("enterprisedominationtype.ibatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByExampleSelective(Enterprisedominationtype record, EnterprisedominationtypeExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("enterprisedominationtype.ibatorgenerated_updateByExampleSelective", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByExample(Enterprisedominationtype record, EnterprisedominationtypeExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("enterprisedominationtype.ibatorgenerated_updateByExample", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByPrimaryKeySelective(Enterprisedominationtype record) {
        int rows = getSqlMapClientTemplate().update("enterprisedominationtype.ibatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByPrimaryKey(Enterprisedominationtype record) {
        int rows = getSqlMapClientTemplate().update("enterprisedominationtype.ibatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This class was generated by Apache iBATIS ibator.
     * This class corresponds to the database table enterprisedominationtype11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    private static class UpdateByExampleParms extends EnterprisedominationtypeExample {
        private Object record;

        public UpdateByExampleParms(Object record, EnterprisedominationtypeExample example) {
            super(example);
            this.record = record;
        }

        public Object getRecord() {
            return record;
        }
    }
}